package com.sansecy.customview;

import android.content.Context;
import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;

public class DistanceActivity extends AppCompatActivity {
    private static final String TAG = "DistanceActivity-App";

    public static void start(Context context) {
        Intent starter = new Intent(context, DistanceActivity.class);
//        starter.putExtra();
        context.startActivity(starter);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_distance);

//        View view = findViewById(R.id.view);
//        if (view instanceof ShadowLayerView) {
//            final ShadowLayerView shadowLayerView = (ShadowLayerView) view;
//            shadowLayerView.setOnClickListener(new View.OnClickListener() {
//                @Override
//                public void onClick(View v) {
//                    shadowLayerView.setSetShadow();
//                }
//            });
//        }

//        ImageView imageView = findViewById(R.id.photo);
//        ViewGroup.LayoutParams layoutParams = imageView.getLayoutParams();
//        Class<? extends ViewGroup.LayoutParams> aClass = layoutParams.getClass();
//        ConstraintLayout.LayoutParams layoutParams1 = new ConstraintLayout.LayoutParams(100, 100);
//        Log.d(TAG, "onCreate: "+aClass);
//        layoutParams.width = 1000;
//        layoutParams.height = 1000;
//        imageView.setImageResource(R.drawable.photo);
    }
}
